package com.yuye.cloud.common.model;

/**
 * 异常枚举类
 * @author gzs
 * @version 3.0.0
 */
public enum ResultEnum {

    //成功
    SYS_SUCCESS(0, "成功"),
    //失败
    SYS_ERROR(500, "失败"),
    //提示
    SYS_INFO(2, "提示"),
    PARAMETER_ERROR(1001, "请求参数有误!"),
    ;
	/**
	 * code 码
	 */
    private Integer code;
    /**
     * 对应的提示信息
     */
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
